Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API bug of Tensor cuda #34416

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Jul 27, 2021

PR types

Bug fixes

PR changes

APIs

Describe

支持API:Tensor.cuda中的参数 device_id 输入值 None ,来表示当前设备。如下:

import paddle
x = paddle.to_tensor(1)
x.cuda(None)    

目前发生异常如下:

infoflow 2021-08-02 21-07-42

该PR修复了上述问题。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@zhwesky2010 zhwesky2010 force-pushed the fix_cuda_bug branch 2 times, most recently from 51442a4 to b23cecf Compare August 2, 2021 13:10
@zhwesky2010 zhwesky2010 changed the title fix API bug of Tensor cuda Fix API bug of Tensor cuda Aug 3, 2021
@zhwesky2010 zhwesky2010 merged commit 54b6c39 into PaddlePaddle:develop Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants